package com.youlu.campus.service.activity;

import com.youlu.campus.entity.ActivityTaskInfo;
import com.youlu.campus.entity.VO.req.ActivityCopyReq;
import com.youlu.campus.entity.VO.req.ActivityTaskQueryVO;
import com.youlu.campus.entity.enums.TaskBizType;
import org.springframework.data.domain.Page;

public interface ActivityTaskService {

    Page<ActivityTaskInfo> list(ActivityTaskQueryVO req);

    boolean create(ActivityTaskInfo req);

    boolean update(ActivityTaskInfo req);

    boolean delete(String taskId);

    ActivityTaskInfo find(String activityId, TaskBizType taskBizType);

    ActivityTaskInfo findById(String activityId, String taskId);

    ActivityTaskInfo findOne(String id);

    /**
     * 复制活动任务
     * @param activityCopyReq
     */
    void doCopyTask(ActivityCopyReq activityCopyReq);
}
